﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="dat_tour_dang_ky.ascx.cs"
    Inherits="NGU.WUC.dat_tour_dang_ky" %>
<%@ Register Src="~/WUC/dat_tour_dieu_khoan_dang_ky.ascx" TagPrefix="uc2" TagName="dat_tour_dieu_khoan_dang_ky" %>
<div id="booking_steps">
    <ol>
        <li class="active" id="one">Đăng ký</li>
        <li id="two">Chọn hình thức
            <br />
            thanh toán</li>
        <li id="three">Xác nhận thông tin</li>
        <li id="four">Xác nhận của SunnyLand</li>
        <li id="five">Thanh Toán</li>
    </ol>
</div>
<!--frm-->
<div class="frm">
    <center>
        <pre></pre>
        <form id="Form1" name="Form1" method="post" action="/DatTour.aspx?step=2">
        <input type="hidden" value="" name="text_tourname" />
        <input type="hidden" value="FTO-PQ03-301212" name="text_tourcode" />
        <!-- thong tin tour -->
        <fieldset class="dk_tour_general_info">
            <legend>Thông Tin Tour</legend>
            <input type="hidden" name="txtbookid" value="<%=this.tourDet.ListTour.TripId %>" />
            <div style="margin-top: 8px;">
            </div>
            <div>
                <label>
                    Hành Trình:</label>
                <span style="font-size: 20px; padding: 50px; color: #B62727; font-weight: bold">
                    <%=this.tourDet.ListTour.TourName %></span>
            </div>
            <div>
                <label>
                    Mã Tour :</label>
                <span>
                    <%=this.tourDet.ListTour.TripId %></span><br />
            </div>
            <div>
                <label>
                    Ngày Khởi Hành:</label>
                <span>
                    <%=string.Format("{0:dd/MM/yyyy}", this.tourDet.ListTour.StartDay) + " " + this.tourDet.ListTour.StartDay.ToShortTimeString() %></span>
                <span style="padding-left: 100px; font-size: 12px; font-weight: bold"><u>N</u>gày Về:</span>
                <span style="padding-left: 50px;">
                    <%=string.Format("{0:dd/MM/yyyy}", this.tourDet.ListTour.EndDay) + " " + this.tourDet.ListTour.EndDay.ToShortTimeString() %></span>
            </div>
        </fieldset>
        <!-- End thong tin tour -->
        <br style="clear: left;" />
        <!-- Gia tour -->
        <fieldset>
            <legend>giá tour:</legend>
            <div style="margin-top: 8px;">
            </div>
            <div style="width: 100%; float: left; font-size: 12px">
                <table class="gialonbe">
                    <tbody>
                        <tr class="title-price price_row" style="height: 30px">
                            <td>
                                <strong>Đơn Vị Tính: <%=this.tourDet.ListTour.Unit %></strong>
                            </td>
                            <td style="width: 200px;">
                                <strong>GIÁ NGƯỜI LỚN: </strong>
                            </td>
                            <td>
                                <strong>GIÁ TRẺ EM: </strong>
                            </td>
                        </tr>
                        <%
                            if (this.tourDet.Ticket != null)
                            {
                                for (int i = 0; i < this.tourDet.Ticket.Count; i++)
                                {
                        %>
                        <tr class="price_row">
                            <td class="line-height">
                                &nbsp;<%=this.tourDet.Ticket[i].CusType %><input name="txtCustomerType" class="txtCustomerType" value="<%=this.tourDet.Ticket[i].CusType %>" type="hidden" />
                            </td>
                            <td class="orange-text line-height ">
                                <%=this.tourDet.Ticket[i].Adult.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) %><input name="txtPriceAdult" class="txtPriceAdult" value="<%=this.tourDet.Ticket[i].Adult.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) %>" type="hidden" />
                            </td>
                            <td class="orange-text  line-height">
                                <%=this.tourDet.Ticket[i].Child.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) %>&nbsp;<input name="txtPriceChild" class="txtPriceChild" value="<%=this.tourDet.Ticket[i].Child.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) %>" type="hidden" />
                            </td>
                        </tr>
                        <% 
                            }
                            }
                        %>                        
                    </tbody>
                </table>
            </div>
        </fieldset>
        <!-- End Gia tour -->
        <br style="clear: left;" />
        <!-- Thong tin khach hang -->
        <fieldset class="dk_customer_info">
            <legend>Thông Tin Khách Hàng</legend>
            <div>
                <label>
                    Họ &amp; tên người liên hệ:</label>
                <input type="text" size="100" id="txtName" name="txtName" />
                <span class="style1">(*)</span>
            </div>
            <div>
                <label>
                    Địa Chỉ:</label>
                <input type="text" size="100" id="txtAddress" name="txtAddress" />
                <span class="style1">(*)</span>
            </div>
            <div>
                <label>
                    Địện Thọai:</label>
                <input type="text" size="20" id="txtPhone" name="txtPhone" />
                <span class="style1">(*)</span>
            </div>
            <div>
                <label>
                    Email</label>
                <input type="text" size="40" id="txtEmail" name="txtEmail" />
                <span class="style1">(*)</span>
            </div>
            <!-- number of customer -->
            <div style="width: 100%; float: left;">
                <table width="100%" cellspacing="0" cellpadding="2" border="0" style="margin-left: 30px;
                    text-align: center">
                    <tbody>
                        <tr style="text-align: center">
                            <td width="30%">
                                <span >Người lớn</span>&nbsp;<input type="text" id="txtBox_adultNum" name="_txtNguoiLon"
                                    value="1" size="1" style="width: 40px" />
                            </td>
                            <td width="30%">
                                <span>Trẻ em</span>&nbsp;
                                <input type="text"  id="txtBox_childNum" name="_txtTreEm" value="0" size="1" style="width: 40px" />
                            </td>
                            <td>
                                <span >Tổng số khách</span>&nbsp;<input id="txtCustomerTotal"
                                    type="text" name="_txtSoKhach" value="1" size="2" disabled="disabled" style="width: 48px"/>
                            </td>
                            <td width="">
                                <input type="hidden" name="_txtTreEmnew" value="0" size="1" style="width: 40px"/>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <!-- End number of customer -->
            <!-- customer details -->
            <div style="width: 100%; float: left; padding-top: 15px;">
                <table id="dk_customerList">
                    <tbody id="dk_customerListBody">
                        <tr class="text_sky_blue">
                            <td width="2%" align="center">
                                STT
                            </td>
                            <td width="10%" align="center">
                                <span>Họ &amp; Tên</span>(<span class="redtext">*</span>)
                            </td>
                            <td align="center">
                                <span>Ngày sinh</span>
                            </td>
                            <td align="center">
                                <span>Địa chỉ</span>
                            </td>
                            <td align="center">
                                <span>Passport</span>
                            </td>
                            <td align="center">
                                <span>Giới tính</span>
                            </td>
                            <td align="center">
                                <span>Độ tuổi</span>
                            </td>
                            <td align="center">
                                <span>Loại phòng</span>
                            </td>
                            <td align="center">
                                <span>Loại khách</span>
                            </td>
                            <td align="center">
                                <span>Trị giá(VND)</span>
                            </td>
                        </tr>                        
                        <tr id="row_0" class="row_even customerDetails">
                            <td>
                                1
                            </td>
                            <td>
                                <input type="text" name="txtHoTen" id="txtHoTen_0" class="txtHoTen" />
                            </td>
                            <td>
                                <input type="text" name="txtNgaySinh" id="txtNgaySinh_0" class="txtNgaySinh" />
                            </td>
                            <td>
                                <input type="text" name="txtDiaChi" id="txtDiaChi_0" class="txtDiaChi" />
                            </td>
                            <td>
                                <input type="text" name="txtPassport" id="Text1" class="txtPassport" />
                            </td>
                            <td>
                                <select name="txtGioiTinh" class="cboGioiTinh" tabindex="-1" >
                                    <option label="Nữ" value="0">Nữ</option>
                                    <option label="Nam" value="1">Nam</option>
                                </select>
                            </td>
                            <td>
                                <select name="cboDoTuoi" class="cboDoTuoi" tabindex="-1" onchange="setPrice(1);">
                                    <option label="Người lớn" value="0" selected>Người lớn</option>
                                    <option label="Trẻ em" value="1">Trẻ em</option>
                                </select>
                            </td>
                            <td>
                                <select name="cboLoaiPhong" class="cboLoaiPhong" tabindex="-1">
                                    <option label="Phòng đơn" value="0">Phòng đơn</option>
                                    <option label="Phòng đôi" value="1">Phòng đôi</option>
                                </select>
                            </td>
                            <td>
                                <select name="cboLoaiKhach" class="cboLoaiKhach" tabindex="-1" onchange="setPrice(1);">
                                    <%
                                        for (int i = 0; i < this.tourDet.Ticket.Count; i++)
                                        {
                                            %>
                                            <option label="<%=this.tourDet.Ticket[i].CusType %>" value="0"><%=this.tourDet.Ticket[i].CusType %></option>
                                            <% 
                                        }
                                         %>
                                </select>
                            </td>
                            <td class="price">
                                <%=this.tourDet.Ticket[0].Adult.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) %><input type="hidden" name="txtSubTotal_0" id="txtSubTotal_0" value="<%=this.tourDet.Ticket[0].Adult.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) %>"/>
                            </td>
                        </tr>
                    </tbody>
                    <tbody>
                        <tr>
                            <td colspan="3">
                                (Định dạng ngày : ngày/tháng/năm)
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <!-- End customer details -->
        </fieldset>
        <!-- End Thong tin khach hang -->
        <br style="clear: left;" />
        <!-- Submit button Div -->
        <div align="center">
            <input type="submit" class="button" id="nextBut" value="Kế tiếp" />
            <input type="reset" class="button" id="cancelBut" value="Hủy Đặt Chỗ"  onclick="return home()"/>
        </div>
        <!-- End Submit button Div -->
        </form>
    </center>
</div>
<!--End frm-->
